package io.cici.cc.mybatis.plus.extension.incrementer;

import io.cici.cc.mybatis.plus.annotation.DbType;
import io.cici.cc.mybatis.plus.core.incrementer.IKeyGenerator;


public class PostgreKeyGenerator implements IKeyGenerator {

    @Override
    public String executeSql(String incrementerName) {
        return "select nextval('" + incrementerName + "')";
    }

    @Override
    public DbType dbType() {
        return DbType.POSTGRE_SQL;
    }
}
